﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Link_eLab.Helper
{
    /// <summary>
    /// 默认读取对应项目的 appsettings.json 文件
    /// </summary>
    public static class UtilConfig
    {
        #region FTP服务器配置数据

        //public static string OracleConnectionString => ConfigurationHelper.GetConfigValueByKey("WebConfig:OracleConnectionString") == null ? "" : string.Format(ConfigurationHelper.GetConfigValueByKey("WebConfig:OracleConnectionString"));

        /// <summary>
        /// FTP IP地址
        /// </summary>
        public static string FtpIp => ConfigurationHelper.GetConfigValueByKey("FtpServerSettings:FtpIp");

        /// <summary>
        /// FTP 路径
        /// </summary>
        public static string Path => ConfigurationHelper.GetConfigValueByKey("FtpServerSettings:Path");

        /// <summary>
        /// FTP 登录用户名
        /// </summary>
        public static string UserName => ConfigurationHelper.GetConfigValueByKey("FtpServerSettings:UserName");

        /// <summary>
        /// FTP 登录密码
        /// </summary>
        public static string Password => ConfigurationHelper.GetConfigValueByKey("FtpServerSettings:Password");

        #endregion

        #region 接口访问配置数据

        /// <summary>
        /// 请求地址
        /// </summary>
        public static string DataUrl => ConfigurationHelper.GetConfigValueByKey("DataAccess:Url");

        #endregion

    }
}
